package com.newblog.dao;

public class MysqlDataAccessDriver extends DataAccessDriver {
    private static PostDAO blogDAO = new PostDAOMysql();
    private static UserDAO userDAO = new UserDAOMysql();
    private static CategoryDAO categoryDAO = new CategoryDAOMysql();
    private static TagDAO   tagDAO = new TagDAOMysql();
	
    MysqlDataAccessDriver(){
    	
    }
    
	public PostDAO createBlogDAO() {
		return blogDAO;
	}

	@Override
	public CategoryDAO createCategoryDAO() {
		return categoryDAO;
	}

	@Override
	public TagDAO createTagDAO() {
		return tagDAO;
	}

	@Override
	public UserDAO createUserDAO() {
		return userDAO;
	}

}
